﻿
using System;
using System.Data;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class LeftMenu : PageBase
{

    protected string MenuString;

    protected void Page_Load(object sender, EventArgs e)
    {


        this.div2.Visible = PubFunction.GetPageVisit(base._UserAuthority, 0x61);
        this.div3.Visible = PubFunction.GetPageVisit(base._UserAuthority, 2);
        this.div4.Visible = PubFunction.GetPageVisit(base._UserAuthority, 0x43);
        this.div5.Visible = PubFunction.GetPageVisit(base._UserAuthority, 0x11);
        this.div6.Visible = PubFunction.GetPageVisit(base._UserAuthority, 4);
        this.div7.Visible = PubFunction.GetPageVisit(base._UserAuthority, 14);
        //this.div8.Visible = PubFunction.GetPageVisit(base._UserAuthority, 0x2e);
        this.div9.Visible = PubFunction.GetPageVisit(base._UserAuthority, 11);
        this.div10.Visible = PubFunction.GetPageVisit(base._UserAuthority, 0x2a);
        this.div11.Visible = PubFunction.GetPageVisit(base._UserAuthority, 0x42);


        if (PubFunction.ISCheckKey && !PubFunction.IEbrowser)
        {
            base.Response.Write("<script>top.location.href='index.aspx'</script>");
        }
    }

    public void SetQuickBtn()
    {
        DataTable dt = PubFunction.GetGroupAuthority(base._UserGroupID);
        this.div2.Visible = PubFunction.GetPageVisit(dt, 0x61);
        this.div3.Visible = PubFunction.GetPageVisit(dt, 2);
        this.div4.Visible = PubFunction.GetPageVisit(dt, 0x43);
        this.div5.Visible = PubFunction.GetPageVisit(dt, 0x11);
        this.div6.Visible = PubFunction.GetPageVisit(dt, 4);
        this.div7.Visible = PubFunction.GetPageVisit(dt, 14);
        //this.div8.Visible = PubFunction.GetPageVisit(dt, 0x2e);
        this.div9.Visible = PubFunction.GetPageVisit(dt, 11);
        this.div10.Visible = PubFunction.GetPageVisit(dt, 0x2a);
        this.div11.Visible = PubFunction.GetPageVisit(dt, 0x42);
    }
}


